//
//  ImagePickerAction.h
//  CarService
//
//  Created by fengyn on 15/2/9.
//  Copyright (c) 2015年 lexingsoft. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^PickerImageBlock)(NSArray *imageArray);

/// 拍照与相册控件
@interface ImagePickerAction : NSObject <UIImagePickerControllerDelegate, UINavigationControllerDelegate>

@property (nonatomic, copy) PickerImageBlock imageBlock;
@property (nonatomic) BOOL mutableSelect;
@property (nonatomic) int maxSelectCount;

// 获取使用实例
- (instancetype) initWithShowViewController:(UIViewController *) viewController;

- (void) showImagePickerWithBlock:(PickerImageBlock) imagePicker;
- (void) showImagePickerWithNeedEdit:(BOOL ) needEdit Block:(PickerImageBlock) imagePicker;
- (void) showImagePickerWithMaxCount:(int) maxCount Block:(PickerImageBlock) imagePicker;

- (void) showVCImagePickerWithPhotoLibraryBlock:(PickerImageBlock)imagePicker;
- (void) showVCImagePickerWithCameraBlock:(PickerImageBlock)imagePicker;

- (void) ownShowImageHeaderPickWithPhotoLibraryBlock:(PickerImageBlock)imagePicker;
- (void) ownShowImageHeaderPickWithCameraBlock:(PickerImageBlock)imagePicker;

@end
